﻿using System;

namespace DatabaseConnectionExample
{
    class MySqlConnection : DatabaseConnection
    {
        public MySqlConnection(string connectionString, TimeSpan timeout) 
            : base(connectionString, timeout)
        {
        }

        public override void OpenConnection()
        {
            Console.ForegroundColor = ConsoleColor.Cyan;
            Console.WriteLine("Connected to MySql database");
            Console.ForegroundColor = ConsoleColor.White;

        }

        public override void CloseConnection()
        {
            Console.ForegroundColor = ConsoleColor.Cyan;
            Console.WriteLine("Disconnected from MySql database");
            Console.ForegroundColor = ConsoleColor.White;
        }
    }
}